<html>
<head>
<title>Book list</title>
</head>
<body>
{% if books %}
<ul>
{% for book in books %}
  <li><a href="{% url 'app2:detail' book.pk %}">{{ book.name }}</a></li>
{% endfor %}
{% else %}
  <p>No books available.</p>
{% endif %}
</ul>
</body>
</html>
